package com.example.ecas.common;

public enum ResponseCode {
    // 请求成功时的响应码
    SUCCESS(200,"SUCCESS"),
    // 请求失败时的响应码
    ERROR(0,"ERROR");
    private final int code;
    // 回复给前端的提示信息
    private final String desc;

    ResponseCode(int code, String desc){
        this.code=code;
        this.desc=desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
